/**
 * 接受当前链接的参数：小程序[options]，h5[query]
 * 
 * @return Object
 */
function getCurPage() {
	let pages = getCurrentPages();
	let curPage = pages[pages.length - 1];
	let curParam = curPage.options || curPage.$route.query;
	return curParam;
}

export default getCurPage;
